package com.innovation.wjrpc.codec.impl;

import com.alibaba.fastjson.JSON;
import com.innovation.wjrpc.codec.Encoder;

/**
 * @author innoyiya
 * @date 2021/9/7 19:39
 */
public class JSONEncoder implements Encoder {

    @Override
    public byte[] encode(Object obj) {
        return JSON.toJSONBytes(obj);
    }
}
